set more 1
clear

pause off 

capture log close


global dir_tab_out     "../outputs"
global dir_work_out    "out_figs" 

******************************************************************
******************************************************************
global  dir_basedata    "out_files" 

use $dir_basedata/sim_model_part2, clear

label var thetac "Cognitive Ability"
label var thetan "Non-cognitive Ability"
label var addiction "Years smoked as of t-1"

** Analysis for Table 3 Panels A and B is not provided here because it requires restricted access to BLS data  


** Table 3 Panel C is below: 

sum net_worth if net_worth >0

gen lognetworth = log(net_worth) if net_worth >= 100

reg lognetworth thetac thetan addiction if age == 30 
eststo regnetworth

quietly esttab regnetworth  using $dir_tab_out/Table_03_model.tex, keep(thetac thetan addiction) replace b(%9.4f) se(%9.4f) star(* 0.10 ** 0.05 *** 0.01) label title(Log Net Worth OLS Regression) nogaps compress nomtitles
